unit uFilterCondition;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, ExtCtrls;

type
  TfFilterCondition = class(TForm)
    Panel1: TPanel;
    Bevel1: TBevel;
    Panel2: TPanel;
    Button3: TButton;
    Button4: TButton;
    procedure Button2Click(Sender: TObject);
    procedure Button1Click(Sender: TObject);
    procedure FormShow(Sender: TObject);
  private
    { Private declarations }
  public
    IsDataSet, IsFormClosed: Boolean;
  end;

var
  fFilterCondition: TfFilterCondition;

implementation

{$R *.dfm}

procedure TfFilterCondition.Button2Click(Sender: TObject);
begin
  IsDataSet := False;
  IsFormClosed := True;
  Close();
end;

procedure TfFilterCondition.Button1Click(Sender: TObject);
begin
  IsDataSet := True;
  IsFormClosed := True;
  Close();
end;

procedure TfFilterCondition.FormShow(Sender: TObject);
begin
  IsDataSet := False;
  IsFormClosed := False;
end;

end.
